<template>
  <div>
    <el-form label-width="70px" :rules="rules" :model="account" ref="formRef">
      <el-form-item label="账号" prop="name">
        <el-input v-model="account.name" />
      </el-form-item>
      <el-form-item label="密码" prop="password">
        <el-input v-model="account.password" show-password />
      </el-form-item>
    </el-form>
  </div>
</template>

<script setup lang="ts">
import { reactive } from 'vue'
import { rules } from '../config/acount-config'

const account = reactive({
  name: '',
  password: ''
})
defineExpose({
  account
})
</script>

<style scoped></style>
